package com.hcl.orm.core.annotation;

import com.hcl.orm.core.spring.MultiDialectDaoScannerRegistrar;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author hucl
 * @projectName jim-orm
 * @description: 数据访问类扫描注解
 * @date 2021/5/1217:20
 */
@Retention(RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(MultiDialectDaoScannerRegistrar.class)
public @interface DataAccessScan {
    String[] basePackages() default {};

    Class<? extends Annotation> annotationClass() default Annotation.class;

    String jdbcOperationsRef() default "";

    Class<?>[] basePackageClasses() default {};
}
